package cn.tedu.carehome.foundation.mapper;

import cn.tedu.carehome.foundation.pojo.entity.Bed;
import cn.tedu.carehome.foundation.pojo.vo.BedAdminListVO;
import cn.tedu.carehome.foundation.pojo.vo.BedAdminStandardVO;
import cn.tedu.carehome.foundation.pojo.vo.BedAdminUpdateStandardVO;
import cn.tedu.carehome.foundation.pojo.vo.BedStaffVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BedMapper {
    List<BedAdminListVO> list(int floor);

    List<Integer> StandarFloor();

    BedAdminStandardVO getStandardByid(Long id);

    int insert(Bed bed);

    void  deleteByid(Long id);
     void deleteBycheckId(Long checkId);
    void updateEnable(Long id);
    int update(Bed bed);
    int countByCheckId(Long checkId);
    int countByCheckIds(Long[] checkIds);
    int countByid(Long id);
    int countByFloorandRoom(int floor,int roomnum,String bednum);
    int countByFloorandRoomNot(int floor,int roomnum,String bednum,Long id);
    BedAdminUpdateStandardVO  upgetstandardByid(Long id);

    List<BedStaffVO> staffList();

}
